<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>grid-demo05</title>
    <style>
        body {
            margin: 0;
            padding: .5em;
            box-sizing: border-box;
            height: 100vh;
        }
        .container {
            display: grid;
            height: 100%;
            grid-template-rows: repeat(4 1fr);
            grid-template-columns: repeat(3 1fr);
            gap: .5em;
        }
        .container > * {
            background-color: #bbb;
            padding: 1em;
            border-radius: 1em;
        }
        .a {
            grid-row: 1 / span 3 ;
        }
        .b {
            grid-column: 2 / span 2;
        }
        .c {
            grid-row: 2 / 3;
        }
        .d {
            grid-row: 2 / 4;
        }
        .f {
            grid-column: 1 / span 2;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="a">a</div>
        <div class="b">b</div>
        <div class="c">c</div>
        <div class="d">d</div>
        <div class="e">e</div>
        <div class="f">f</div>
        <div class="g">g</div>
    </div>
</body>
</html>